package org.javaboy.order.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface OrderMapper {
    @Insert(value = "insert into order_tbl (user_id, commodity_code, count,money) values (#{userId}, #{commodityCode}, #{count},#{money})")
    int createOrder(@Param("userId") Integer userId, @Param("commodityCode") Integer commodityCode, @Param("count") Integer count, @Param("money") Double money);
}
